
             

[SIZE=1]XXX[/SIZE]


    XXX   

[SIZE=1]XXX[/SIZE]


##################
#         #
################

   

*********************************************
ALTER TABLE user ADD font mediumtext NOT NULL
*********************************************


###############################
#  				   #
#############################


 

modify_options

 

*********************************************
	<tr>
		<td class="panelsurround" align="center">
		<div class="panel">
			<div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
*********************************************


 


*********************************************
<fieldset class="fieldset">
			<legend>$vbphrase[police_titre]</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
			<td>$vbphrase[police_desc]</td>
				</tr>
				<tr>
					<td>
                                             <div>			
<textarea name=font rows=4 cols=30>$bbuserinfo[font]</textarea>
		</div> 									    </td>
                        </tr>
				</table>
			</fieldset>
*********************************************


########################
#        #
######################




: GOLBAL
 : police_titre
:   



 : GLOBAL
  : police_desc
 : Insert here vbcodes you want to use to modify the aspect of your messages on the forum.<br>For exemple : <b>[SIZE=1][COLOR=blue]XXX[/COLOR][/SIZE]</b> will modify the SIZE and the COLOR of all your posts.<br>
Go <b><a href="misc.php?do=bbcode">here</B></a> to have more informationsa about VBCodes. 
<br>
<b>HTML</b> Code isn't allowed.





 :  GLOBAL
  : police_police
 :    

 :  GLOBAL
 : font_box
:  


###################################
#               #
#################################


 

profile.php

 

*********************************************
if ($_POST['do'] == 'updateoptions')
{
	require_once('./includes/functions_misc.php');

	globalize($_POST, array('newstyleset' => INT, 'dst' => INT,
*********************************************


     'dst' => INT


*********************************************
 'font' => STR,
*********************************************



 


*********************************************
	// make sure $timezoneoffset is a numeric value
	$timezoneoffset += 0;
*********************************************


 


*********************************************
	
	$font = strip_tags($font);
*********************************************



 


*********************************************
	$DB_site->query("
		UPDATE " . TABLE_PREFIX . "user SET
			" . $updatestyles . "
			showvbcode = $showvbcode,
			pmpopup = $pmpopup,
			maxposts = $umaxposts,
			daysprune = $prunedays,
			timezoneoffset = '$timezoneoffset',
			startofweek = $startofweek,
			languageid = $languageid,
			threadedmode = $threadedmode,
			autosubscribe = $autosubscribe,
			options = " . convert_array_to_bits($options, $_USEROPTIONS) . "
		WHERE userid = $bbuserinfo[userid]
	");
*********************************************





*********************************************
	$DB_site->query("
		UPDATE " . TABLE_PREFIX . "user SET
			" . $updatestyles . "
			showvbcode = $showvbcode,
			pmpopup = $pmpopup,
                        font = '" . addslashes($font) ."',
			maxposts = $umaxposts,
			daysprune = $prunedays,
			timezoneoffset = '$timezoneoffset',
			startofweek = $startofweek,
			languageid = $languageid,
			threadedmode = $threadedmode,
			autosubscribe = $autosubscribe,
			options = " . convert_array_to_bits($options, $_USEROPTIONS) . "
		WHERE userid = $bbuserinfo[userid]
	");
*********************************************



 

includes/functions_showthread.php

 


*********************************************
		// private message style postbit
		case 'pm':
			$privatemessage = true;

			$post['editlink'] = false;
			$post['replylink'] = "private.php?$session[sessionurl]do=newpm&amp;pmid=$post[pmid]";
			$post['forwardlink'] = "private.php?$session[sessionurl]do=newpm&amp;forward=1&amp;pmid=$post[pmid]";
			$show['postcount'] = false;
			$show['reputationlink'] = false;
			$show['reportlink'] = false;
			break;

		// showthread / showpost style Postbit
		default:
*********************************************


 


*********************************************
			$val2 = strstr($post[font],'XXX');
			$val2 = str_replace("XXX","","$val2");
			$val1 = str_replace("XXX$val2", "", "$post[font]");
			$post['pagetext'] = "$val1 $post[pagetext] $val2";
*********************************************





            




  


*********************************************
: GLOBAL
 : font_box
 :  
*********************************************


 

admincp/user.php

 

*********************************************
	// USER IMAGE SECTION
	print_table_header($vbphrase['image_options']);
	if ($user['avatarid'])
	{
		$avatarurl= '../' . $user['avatarpath'];
	}
*********************************************


 


*********************************************
	print_table_header($vbphrase['police_police']);
	print_textarea_row($vbphrase['font_box'], 'font', $user['font'], 5, 40);
	print_table_break('', $INNERTABLEWIDTH);
*********************************************


 


*********************************************
if ($_POST['do'] == 'update')
{
	globalize($_POST, array(
		'password',
		'user',
		'membergroup',
		'modifyavatar',
		'birthday',
		'signature',
		'modifyprofilepic',
		'joindate',
		'lastvisit',
		'lastactivity',
		'lastpost',
		'options',
		'referrer',
		'threaddisplaymode' => INT
	));
*********************************************


 


*********************************************
if ($_POST['do'] == 'update')
{
	globalize($_POST, array(
		'password',
		'user',
		'membergroup',
		'modifyavatar',
		'birthday',
		'signature',
		'modifyprofilepic',
		'joindate',
		'lastvisit',
		'lastactivity',
		'lastpost',
		'options',
		'referrer',
		'threaddisplaymode' => INT,
      		'font' => STR
	));
*********************************************



 

*********************************************
	// Determine this user's reputationlevelid.
	$reputationlevel = $DB_site->query_first("
		SELECT reputationlevelid
		FROM " . TABLE_PREFIX . "reputationlevel
		WHERE $user[reputation] >= minimumreputation
		ORDER BY minimumreputation DESC
	");
	$user['reputationlevelid'] = intval($reputationlevel['reputationlevelid']);
*********************************************


 


*********************************************
	$user['font'] = $font;
*********************************************
